#ifndef ACTION_JS
#define ACTION_JS

var Action = function() {};

(function()
{
	var _none = new Action();
	Action.__defineGetter__("None", function() { return _none; });
	
	var _compile = new Action();
	Action.__defineGetter__("Compile", function() { return _compile; });
	
	var _copy = new Action();
	Action.__defineGetter__("Copy", function() { return _copy; });
	
	Action.Parse = function(/* string */ name)
	{
		switch(name)
		{
			case "None":
				return _none;
			case "Compile":
				return _compile;
			case "Copy":
				return _copy;
			default:
				throw "Unrecognized enum.";
		}
	};
})();

#endif
